﻿using JX.Core.Entity;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace JXWebSite.Areas.Admin.Models.UserViewModels
{
	/// <summary>
	/// 会员移动视图类
	/// </summary>
	public class UserMoveViewModel
	{
		/// <summary>
		/// ID类型：0：会员ID；1：会员名；2：会员组；
		/// </summary>
		[Required(ErrorMessage = "会员类型不能为空")]
		public int IdType { get; set; } = 0;
		/// <summary>
		/// 
		/// </summary>
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public string ids { get; set; } = string.Empty;
		/// <summary>
		/// 
		/// </summary>
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public string UserName { get; set; } = string.Empty;
		/// <summary>
		/// 
		/// </summary>
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public string GroupIDs { get; set; } = string.Empty;
		/// <summary>
		/// 要移动到的会员组
		/// </summary>
		[Required(ErrorMessage = "要移动到的会员组不能为空")]
		public int RightGroupID { get; set; }
	}
}
